package com.wxh.order.controller;

import com.wxh.order.feign.ServiceFeignClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author wxh
 */
@RestController
public class ServiceController {

    @Autowired
    private ServiceFeignClient serviceFeignClient;

    @GetMapping("/serviceinfo/{serviceName}")
    public String getServiceInfo(@PathVariable String serviceName) {
        return serviceFeignClient.getServiceInfo(serviceName);
    }


}
